// 以前在路由解构的，现在全部在umi解构
import { useParams } from 'umi';

interface ParamsType {
  id: string;
}

const Index = () => {
  const params: ParamsType = useParams();
  console.log(params);
  return <h1 className="title">detail详情页 = {params.id}</h1>;
};

export default Index;
